package day09demo;

public class Doctor extends Person{
    String title;

    public Doctor() {

    }

    public Doctor(String name, int age, String address, String title) {
        super(name, age, address);
        this.title = title;
    }

    void work(){
        System.out.println(name + "正在做手术 ");

    }
}
